<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html">
		<title>MWebService</title>
		<link href="styles.css" rel="stylesheet" type="text/css">
		<link href="styles_class.css" rel="stylesheet" type="text/css">
	</head>

	<body>
		<div id="container">
			<div id="header"><span>
				<p><a href="http://mjs.darkgreenmedia.com">mjs.darkgreenmedia.com</a></p>
				<p><a href="index.html">back</a></p>
				</span>
			</div>

		<div class="block1">
			<div class="title"><h2>Name</h2></div>
			<div class="block2"><p class="name">MWebService</p></div>
		</div>

		<div class="block1">
			<div class="title"><h2>Examples</h2></div>
			<div class="block2">
				<div class="sample">
					<pre>
import mjs.processing.mobile.mwebservices.*;

MWebService wService;

String endPoint = "http://services.xmethods.net/soap";
String namespace = "urn:xmethods-delayed-quotes";
String method = "getQuote";

void setup()
{
  noLoop();
}

void keyPressed()
{
  new Thread()
  {
    public void run()
    {
      wService = new MWebService(endPoint,namespace,method);
      wService.addParameter("symbol","sunw");
      
      println("Return : " + wService.call());
    }
  }.start();
}
					</pre>
    				<br/>
	  			</div>
			</div>
		</div>
  
  
		<div class="block1">
			<div class="title"><h2>Description</h2></div>
			<div class="block2">Datatype to make calls to webservices.</div>
		</div>


		<div class="block1">
			<div class="title"><h2>Methods</h2></div>
			<div class="block2">
				<ul>
		  			<li><a href="MWebService_addParameter.html">addParameter()</a></li>
					<div class="description2">Adds a parameter (property) to the call.</div>
		  			<li><a href="MWebService_call.html">call()</a></li>
					<div class="description2">Returns the result of calling the webservice.</div>
				</ul>
			</div>
		</div>

<div class="block1">
	<div class="title"><h2>Constructors</h2></div>
	<div class="block2">
		<ul>
  			 <li>MWebService(endPointURL,namespace,methodName)</li>
		</ul>
	</div>
</div>

<div class="block1">
	<div class="title"><h2>Parameters</h2></div>

	<div class="block2">
		<ul>
 			<li>endPointURL</li>
 		 		<div class="description2">String : The destination to POST SOAP data.</div>
 			<li>namespace</li>
 		 		<div class="description2">String : The namespace for the soap object.</div>
 			<li>methodName</li>
 		 		<div class="description2">String : The name for the soap object</div>
		</ul>
	</div>
</div>		
</div>		
	</body>
</html>
